<?php

class IndexController extends Custom_Controller_Action
{
	public function init()
    {
        /* Initialize action controller here */
		
    }

	public function switchAction()
	{
		$this->_helper->layout()->disableLayout();
		$this->_helper->viewRenderer->setNoRender(true);

		$vortexSession = Zend_Registry::get('vortexSession');
		$vortexSession->language = $this->_getParam('lang');
		$this->Redirector('index', 'index','default');
	}

    public function indexAction()
    {
      $this->_forward('login', 'auth', 'user');
    }

}

